<?php

namespace app\model\zs;

use think\facade\Db;
use think\Model;

class ZsMemberPlugDraw extends Model
{
    // 设置当前模型对应的完整数据表名称
    protected $table = 'member_plug_draw';

    // 设置当前模型的数据库连接
    protected $connection = 'zs';

    public static function projectTypeRelsBak()
    {
        return [
            0 => '默认',
            4 => '抖音转盘抽奖',
            5 => '2021年10月抽奖',
            10 => '店庆刮刮卡抽奖',
            11 => '满额领券',
            12 => '新人礼',
        ];
    }

    public static function projectTypeRels()
    {
        return Db::connect('zs')->table("member_plug_draw_set")->column('title', 'id');
    }
}
